package org.timeticker.impl;

import org.timeticker.ProjectList;
import org.timeticker.Project;

/**
 * ProjectDialog list implementation
 *
 * @author Ivan Latysh
 * @version 0.1
 * @since 13-Aug-2007 : 7:59:52 PM
 */
public class ProjectListImpl extends AbstractObjectList<Project> implements ProjectList {

  /**
   * Create a new project list
   */
  public ProjectListImpl() {
  }

  /** {@inheritDoc} */
  public Project get(String key) {
    if (null==key) return null;
    for (Project project: objects) {
      if (key.equals(project.getCode())) return project;
    }
    return null;
  }

}
